package com.xiaoqi.reggie.common;

/**
 * @Author：xiaoqi
 * @creat 2022/9/18 20:26
 */
public class BaseContext {
    public static ThreadLocal<Long> threadLocal=new ThreadLocal<>();

    public static void setCurrentId(Long id){
        threadLocal.set(id);
    }
    public static Long getCurrentId(){
        Long aLong = threadLocal.get();
        return aLong;
    }
}
